import os
lax_coordinates = (33.9425, -118.408056)
city, year, pop, chg, area = ('Tokyo', 2003, 32450, 0.66, 8014)
traveler_ids = [('USA', '31195855'), ('BRA', 'CE342567'), ('ESP', 'XDA205856')]
for passport in sorted(traveler_ids):
    print('%s/%s' % passport)
for country, _ in traveler_ids:
    print(country)
# tuple unpacking(situation 1 --> common tuple)
latitude, longitude = lax_coordinates
print(latitude, longitude)
# tuple unpacking(situation 2 -->function applied in tuple)
t = (20, 8)
quotient, remainder = divmod(*t)
print(quotient, remainder)
# when get filename from path
_, filename = os.path.split('D:/codes/fluent-python/ex2-5-tuple-used-as-records.py')
print(filename)
# using * to grab excess items
a, b, *rest = range(5)
print(a, b, rest)
a, b, *rest = range(2)
print(a, b, rest)
a, *rest, b = range(5)
print(a, rest, b)